<template>
  <div class="dashboard-container">
    <el-card>
      <!-- <div class="dashboard-text">用户名: {{ name }}</div> -->
      <echarts />
    </el-card>
  </div>
</template>

<script>
// 引入图表组件
import echarts from './components/echarts.vue'

import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: {
    echarts
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
